package com.yibo.feign.message;

import com.yibo.support.pojo.IResult;
import com.yibo.support.pojo.Result;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class CheckWordServiceFallback implements FallbackFactory<CheckWordService> {

    @Override
    public CheckWordService create(Throwable throwable) {
        return new CheckWordService() {
            @Override
            public Result<Integer> send(String email, String type) {
                return null;
            }

            @Override
            public Result<String> emailWord(String email, String type) {
                return null;
            }

            @Override
            public Result<Integer> deleteCheckWord(String email, String type) {
                return null;
            }
        };
    }
}
